<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://www.ecside.org" prefix="ec"%>
<jsp:useBean id="pageBean" scope="request" class="com.agileai.hotweb.domain.PageBean"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>潜在客户个人资源</title>
<%@include file="/jsp/inc/resource.inc.jsp"%>
<script type="text/javascript">
function controlUpdateBtn(stateResult){
	if(stateResult =='0'){
		enableButton("editImgBtn");
		enableButton("delImgBtn");
	}
	if(stateResult =='1'){
		disableButton("editImgBtn");
		enableButton("delImgBtn");
	}
}
</script>
</head>
<body>
<form action="<%=pageBean.getHandlerURL()%>" name="form1" id="form1" method="post">
<%@include file="/jsp/inc/message.inc.jsp"%>
<div id="__ToolBar__" >
<table border="0" cellpadding="0" cellspacing="1">
<tr>
<%if(pageBean.getBoolValue("doEdit8Save")){ %>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" hotKey="A" align="center" onclick="doRequest('insertRequest')"><input value="&nbsp;" title="新增" type="button" class="createImgBtn" />新增</td>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" hotKey="E" align="center" onclick="doRequest('updateRequest')"><input id="editImgBtn" value="&nbsp;" title="编辑" type="button" class="editImgBtn" />编辑</td>
   <%} %>   
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" hotKey="V" align="center" onclick="doRequest('viewDetail')"><input value="&nbsp;" title="查看" type="button" class="detailImgBtn" />查看</td>   
   <%if(pageBean.getBoolValue("doDel")){ %>  
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" hotKey="D" align="center" onclick="doDelete($('#'+rsIdTagId).val());"><input id="delImgBtn" value="&nbsp;" title="删除" type="button" class="delImgBtn" />删除</td>
<%} %>   
</tr>
</table>
</div>
<div id="__ParamBar__">
<table class="queryTable"><tr><td>
&nbsp;创建日期<input id="sdate" label="开始时间" name="sdate" type="text" value="<%=pageBean.inputDate("sdate")%>" size="8" class="text" readonly="readonly"/><img id="sdatePicker" src="images/calendar.gif" width="16" height="16" alt="日期/时间选择框" />
-<input id="edate" label="截止时间" name="edate" type="text" value="<%=pageBean.inputDate("edate")%>" size="8" class="text"  readonly="readonly"/><img id="edatePicker" src="images/calendar.gif" width="16" height="16" alt="日期/时间选择框" />
&nbsp;姓名<input id="PER_NAME" label="姓名" name="PER_NAME" type="text" value="<%=pageBean.inputValue("PER_NAME")%>" size="8" class="text" />
&nbsp;所属公司<input id="PER_BELONG_ORG" label="所属公司" name="PER_BELONG_ORG" type="text" value="<%=pageBean.inputValue("PER_BELONG_ORG")%>" size="8" class="text" />
&nbsp;性别<select id="PER_SEX" label="性别" name="PER_SEX" class="select" onchange="doQuery()"><%=pageBean.selectValue("PER_SEX")%></select>
&nbsp;状态<select id="PER_STATE" label="状态" name="PER_STATE" class="select" onchange="doQuery()"><%=pageBean.selectValue("PER_STATE")%></select>
&nbsp;创建人<input id="PER_CREATER_NAME" label="创建人" name="PER_CREATER_NAME" type="text" value="<%=pageBean.inputValue("PER_CREATER_NAME")%>" size="8" class="text" />
&nbsp;<input type="button" name="button" id="button" value="查询" class="formbutton" onclick="doQuery()" />
</td></tr></table>
</div>
<ec:table 
form="form1"
var="row"
items="pageBean.rsList" 
retrieveRowsCallback="process" 
useAjax="true" sortable="true"
doPreload="false" toolbarContent="navigation|pagejump |pagesize |extend|status"
width="100%" rowsDisplayed="15"
listWidth="100%" 
height="390px"
>
<ec:row styleClass="odd" ondblclick="clearSelection();doRequest('viewDetail')" oncontextmenu="selectRow(this,{PER_ID:'${row.PER_ID}'});controlUpdateBtn('${row.PER_STATE}');refreshConextmenu()" onclick="selectRow(this,{PER_ID:'${row.PER_ID}'});controlUpdateBtn('${row.PER_STATE}');">
	<ec:column width="50" style="text-align:center" property="_0" title="序号" value="${GLOBALROWCOUNT}" />
	<ec:column width="100" property="PER_NAME" title="姓名"   />
	<ec:column width="50" property="PER_SEX" title="性别"    mappingItem="PER_SEX"/>
	<ec:column width="80" property="PER_EMAIL" title="邮箱"   />
	<ec:column width="50" property="PER_STATE" title="状态"    mappingItem="PER_STATE"/>
	<ec:column width="100" property="PER_BELONG_ORG" title="所属公司"   />
	<ec:column width="50" property="PER_CREATER_NAME" title="创建人"   />
	<ec:column width="50" property="PER_CREATE_TIME" title="创建时间"   />
	<ec:column width="100" property="PER_LABELS" title="标签"   />
</ec:row>
</ec:table>
<input type="hidden" name="PER_ID" id="PER_ID" value="" />
<input type="hidden" name="actionType" id="actionType" />
</form>
</body>
</html>
<script language="JavaScript">
setRsIdTag('PER_ID');
var ectableMenu = new EctableMenu('contextMenu','ec_table');
initCalendar('sdate','%Y-%m-%d','sdatePicker');
initCalendar('edate','%Y-%m-%d','edatePicker');
datetimeValidators[0].set("yyyy-MM-dd").add("sdate");
datetimeValidators[0].set("yyyy-MM-dd").add("edate");
</script>
<%@include file="/jsp/inc/scripts.inc.jsp"%>
